package java201521123058;

import java.util.Scanner;
public class  shiyan2{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder str = new StringBuilder();
		while (sc.hasNext()) {
			int n=sc.nextInt();
			for (int i = 0; i < n; i++) {
				str.append(i);
			}
			int a=sc.nextInt();
			int b=sc.nextInt();
			System.out.println(str.substring(a, b));
		}
	}
}
